<%@ page language="java" pageEncoding="UTF-8"%>
     <div class="header_bj">
	     <div class="container containerTab">
	     	<div class="tableTabDiv">
				<ul id="navTab" class="nav nav-tabs navClear">
					<li class="active"><a href="#_pageMain" data-toggle="tab" onclick="showPageMain(this)">主表单</a></li>
					<li><a href="#_pageDiagram" data-toggle="tab" onclick="showPageDiagram(this)">流程图</a></li>
				</ul>
			</div>
			<div class="row rowbtn-big">
			  <ul>
			  	  <%-- <li class="bc"><a href="javascript:void(0)" onclick="waterMark('<%=displayName%>')"><img src="<%= resloc %>/static/formskins/default/css/images/head_bc.png" width="13" height="13" />签章</a></li> --%>
			  	  <li class="tj" style="width:90px;"><a href="javascript:void(0)" onclick="doMainFormImportFromExcel()"><img src="<%= resloc %>/static/formskins/default/css/images/head_tj.png" width="13" height="13" />从Excel导入</a></li>
	              <li class="bc"><a href="javascript:void(0)" onclick="doSave()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bc.png" width="13" height="13" />保存</a></li>
	              <li class="tj"><a href="javascript:void(0)" onclick="doSubmit()"><img src="<%= resloc %>/static/formskins/default/css/images/head_tj.png" width="13" height="13" />提交</a></li>
	              <li class="tj"><a href="javascript:void(0)" onclick="doSubmit()"><img src="<%= resloc %>/static/formskins/default/css/images/head_tj.png" width="13" height="13" />通过</a></li>
	              <li><a href="javascript:void(0)" onclick="doRefuse()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bh.png" width="13" height="13" />驳回</a></li>
	              <li><a href="javascript:void(0)" onclick="doReturn()"><img src="<%= resloc %>/static/formskins/default/css/images/head_th.png" width="13" height="13" />退回</a></li>
	              <li><a href="javascript:void(0)" onclick="doReject()"><img src="<%= resloc %>/static/formskins/default/css/images/head_refuse.png" width="13" height="13" />拒绝</a></li>
	              <li><a href="javascript:void(0)" onclick="doReassign()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zb.png" width="13" height="13" />转办</a></li>
	              <li><a href="javascript:void(0)" onclick="doInvolve()"><img src="<%= resloc %>/static/formskins/default/css/images/head_add.png" width="13" height="13" />加签</a></li>
	              <li><a href="javascript:void(0)" onclick="doClaimRepeal()"><img src="<%= resloc %>/static/formskins/default/css/images/head_th.png" width="13" height="13" />退领</a></li>
<!--              <li class="bz"><a href="javascript:void(0)" onclick="doComments()"><img src="<%//= resloc %>/static/formskins/default/css/images/head_bz.png" width="13" height="13" />意见</a></li> -->
	              <li><a href="javascript:void(0)" onclick="doCancel()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zx.png" width="13" height="13" />撤销</a></li>
	              <li><a href="javascript:void(0)" onclick="doClose()"><img src="<%= resloc %>/static/formskins/default/css/images/head_gb.png" width="13" height="13" />关闭</a></li>
	              <li id="header_btn_helper" style="display:none"><a href="javascript:void(0)" onclick="doHelp()"><img src="<%= resloc %>/static/formskins/default/css/images/head_help.png" width="13" height="13" />帮助</a></li>
	            </ul>
			</div>
			<!-- 小屏幕显示 -->
			<div class="row btn-group rowbtn-small">
			   <button type="button" class="btn btn-default dropdown-toggle" 
			      data-toggle="dropdown">
			      操作  <span class="caret"></span>
			   </button>
			   <ul class="dropdown-menu" role="menu">
			      <li class="bc"><a href="javascript:void(0)" onclick="doSave()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bc.png" width="13" height="13" />保存</a></li>
	              <li class="tj"><a href="javascript:void(0)" onclick="doSubmit()"><img src="<%= resloc %>/static/formskins/default/css/images/head_tj.png" width="13" height="13" />提交</a></li>
	              <li class="tj"><a href="javascript:void(0)" onclick="doSubmit()"><img src="<%= resloc %>/static/formskins/default/css/images/head_tj.png" width="13" height="13" />通过</a></li>
	              <li><a href="javascript:void(0)" onclick="doRefuse()"><img src="<%= resloc %>/static/formskins/default/css/images/head_bh.png" width="13" height="13" />驳回</a></li>
	              <li><a href="javascript:void(0)" onclick="doReturn()"><img src="<%= resloc %>/static/formskins/default/css/images/head_th.png" width="13" height="13" />退回</a></li>
	              <li><a href="javascript:void(0)" onclick="doReject()"><img src="<%= resloc %>/static/formskins/default/css/images/head_refuse.png" width="13" height="13" />拒绝</a></li>
	              <li><a href="javascript:void(0)" onclick="doReassign()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zb.png" width="13" height="13" />转办</a></li>
	              <li><a href="javascript:void(0)" onclick="doInvolve()"><img src="<%= resloc %>/static/formskins/default/css/images/head_add.png" width="13" height="13" />加签</a></li>
	              <li><a href="javascript:void(0)" onclick="doClaimRepeal()"><img src="<%= resloc %>/static/formskins/default/css/images/head_th.png" width="13" height="13" />退领</a></li>
<!--              <li class="bz"><a href="javascript:void(0)" onclick="doComments()"><img src="<%//= resloc %>/static/formskins/default/css/images/head_bz.png" width="13" height="13" />意见</a></li> -->
	              <li><a href="javascript:void(0)" onclick="doCancel()"><img src="<%= resloc %>/static/formskins/default/css/images/head_zx.png" width="13" height="13" />撤销</a></li>
	              <li><a href="javascript:void(0)" onclick="doClose()"><img src="<%= resloc %>/static/formskins/default/css/images/head_gb.png" width="13" height="13" />关闭</a></li>
	              <li id="header_btn_helper" style="display:none"><a href="javascript:void(0)" onclick="doHelp()"><img src="<%= resloc %>/static/formskins/default/css/images/head_help.png" width="13" height="13" />帮助</a></li>
			   </ul>
			</div>
	     </div>
     </div>
     
<script>
function showPageMain(tabObj) {
    $("#_pageMain").show();
    $("#_pageDiagram").hide();
    $(".fy").show();
}

function showPageDiagram(tabObj) {
    $("#_pageMain").hide();
    $("#_pageDiagram").show();
    $(".fy").hide();
}

function doSubmit() {
	console.log("datactx.b=\n\n"+JSON.stringify(datactx.b));
	fmdf.saveData(fmdCtx, "test_tsid");
}

function doSave() {
	console.log("datactx.b=\n\n"+JSON.stringify(datactx.b));
	fmdf.saveData(fmdCtx, "test_tsid");
}

function doClose() {
	if (window.opener) {
		if (navigator.appName == 'Microsoft Internet Explorer') {
			window.opener = 'whatever';
			window.open('', '_parent', '');
			window.close()
		} else {
			window.open('', '_self', '');
			window.close()
		}
	} else {
		if (navigator.appName == 'Microsoft Internet Explorer') {
			window.opener = null;
			window.open('', '_self', '');
			window.close()
		} else {
			window.open('', '_parent', '');
			self.close()
		}
	}
}
</script>